﻿
using System.Collections;
using System.Collections.Generic;
using UGUIFW;
using UnityEngine;

public class MarketUI : BaseUI
{
    public MarketUI(UIInfo info) : base(info)
    {
    }
    public override void Display()
    {
        base.Display();
        //注册按钮事件
        RigisterButtonObjectEvent("BtnClose",
            P => CloseUI()
            );
        //注册道具事件
        RigisterButtonObjectEvent("BtnItem1",
            P =>
            {
                ShowUI(EUIName.Popupl_UI, false, null, "汽车详情");
            }
            );

        RigisterButtonObjectEvent("BtnItem2",
            P =>
            {
                ShowUI(EUIName.Popupl_UI, false, null, "卡车详情");
            }
            );
    }
}